package com.boot.main.service;

import com.boot.main.entity.CcomRole;
import com.boot.main.entity.CcomRoleMenu;
import com.boot.main.entity.CcomRolePermission;
import com.boot.main.response.ResponseData;

import java.util.HashMap;
import java.util.Set;

public interface IRoleService<T> {
    Set<String> getPermissionByUserName(String username);
    ResponseData getRoles(Integer page, Integer limit, String name);
    ResponseData getAllRoles();
    ResponseData saveRole(CcomRole role);
    ResponseData updateRole(CcomRole role);
    ResponseData deleteRole(Long id);
    ResponseData saveRoleMenu(CcomRoleMenu roleMenu);
    ResponseData saveRolePermission(CcomRolePermission rolePermission);
}
